// import { getToken } from '@/utils'
import { createStore, applyMiddleware } from 'redux'
import { composeWithDevTools } from 'redux-devtools-extension'
import thunk from 'redux-thunk'
import reducer from './reducers'
// 持久化
// const initialState = {
//   // 注意：此处的 login 属性是根据合并reducer时，login 的名称而来的
//   login: getToken(),
// }
const store = createStore(
  reducer,
  // initialState,
  composeWithDevTools(applyMiddleware(thunk))
)
export default store
